import _fetch from "./request";
//获取短信验证码
function getPhoneCode(data) {
  return _fetch({
    url: "/sendsms",
    method: "post",
    data: data,
  });
}
// 注册接口函数
function toRegister(data) {
  return _fetch({
    url: "/register",
    method: "post",
    data: data,
  });
}
export { getPhoneCode, toRegister };
